'''
Created on 25/apr/09

@author: Riccardo Cagnasso
'''
from google.appengine.ext import db

class Ticket(db.Model):
    state = db.StringProperty(required=True, choices=set(["open","accepted","closed"]))
    assignedTo = db.UserProperty()
    priority = db.StringProperty(choices=set(["normal","high"]))
    author = db.UserProperty(required=True)
    content = db.StringProperty(multiline=True)
    date = db.DateTimeProperty(auto_now_add=True)
